prompt user to start xencommons first if it is not running.
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 23 Jun 2010 16:01:35 +0000 (17:01 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 23 Jun 2010 16:01:35 +0000 (17:01 +0100)
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
tools/hotplug/Linux/init.d/xend

index 9ffbf55432e4afbf5197bbbb37b394e8e94dd064..985db0c57ce9a94be4179f3f08ea49724987fa63 100755 (executable)
@@ -37,6 +37,10 @@ function await_daemons_up
 
 case "$1" in
   start)
+       if [ -z "`ps -C xenconsoled -o pid=`" ]; then
+               echo "xencommons should be started first."
+               exit 1
+       fi
        mkdir -p /var/lock/subsys
        touch /var/lock/subsys/xend
        xend start